package com.zjb.home.boxingtu.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

/**
 * Created by zhangjiebo on 2019/10/31.
 *
 * @author ZhangJieBo
 */
public abstract class BaseView extends View {
    public BaseView(@NonNull Context context) {
        super(context);
        init();
    }

    public BaseView(@NonNull Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
        initAttrs(attrs);
        init();
    }

    public BaseView(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        initAttrs(attrs);
        init();
    }

    public abstract void initAttrs(AttributeSet attrs);
    public abstract void init();
}
